//
//  Collection_List_HeaderView.m
//  LoveTravel
//
//  Created by MS on 16-1-23.
//  Copyright (c) 2016年 Lemon. All rights reserved.
//

#import "Collection_List_HeaderView.h"

@interface Collection_List_HeaderView ()

@property (weak, nonatomic) IBOutlet UIView *lineView;
@property (weak, nonatomic) IBOutlet UIView *baseView;


@end


@implementation Collection_List_HeaderView

+(instancetype)headerViewWithXib
{
    return [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner: nil options:nil] lastObject];
}


-(void)awakeFromNib
{
    _baseView.layer.cornerRadius = 15;
    _baseView.clipsToBounds = YES;
    self.backgroundColor = [UIColor clearColor];
    
}


-(void)setListFrame:(CollecList_Frame *)listFrame
{
    _listFrame = listFrame;

    _titleView.text =listFrame.list.title;
    
    _subTilteView.text = listFrame.list.sub_title;

    _textView.text = listFrame.list.short_desc;

}


@end
